tools/xcutils: Free xtl loggers after use
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 Mar 2014 17:06:16 +0000 (17:06 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 10 Mar 2014 17:19:11 +0000 (17:19 +0000)
While not much of a functional change, this prevents irritating warnings from
valgrind when trying to analyse xc_domain_{save,restore}() themselves.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/xcutils/xc_restore.c
tools/xcutils/xc_save.c

index 4ea261b7088c7be8d39d942767a1eb1c1c3ac9ce..616bd421779df50c95ba3d3e77b1b185effe3f6a 100644 (file)
@@ -67,6 +67,7 @@ main(int argc, char **argv)
     }
 
     xc_interface_close(xch);
+    xtl_logger_destroy(l);
 
     return ret;
 }
index e34bd2c854143ab3ddf531b55708e3a065b71971..45ad0ce253921d27d659111c04c76fb4d388f5c1 100644 (file)
@@ -222,6 +222,7 @@ main(int argc, char **argv)
         xc_evtchn_close(si.xce);
 
     xc_interface_close(si.xch);
+    xtl_logger_destroy(l);
 
     return ret;
 }